package com.tangcco.biz.impl;

import com.tangcco.biz.SingerBiz;
import com.tangcco.dao.SingerMapper;
import com.tangcco.pojo.Page;
import com.tangcco.pojo.Singer;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("singerBiz")
public class SingerBizImpl implements SingerBiz {
	@Resource
	private SingerMapper singerMapper;
	
	@Override
	public List<Singer> selectAll() {
		return singerMapper.selectAll();
	}

	@Override
	public Singer selectById(String sId) {
		return singerMapper.selectById(sId);
	}

	@Override
	public Singer selectByMusicRid(String musicRid) {
		return singerMapper.selectByMusicRid(musicRid);
	}

	@Override
	public int selectCountBySongHot(String[] country, String sex) {
		return singerMapper.selectCountBySongHot(country,sex);
	}

	@Override
	public List<Singer> selectBySongHot(String[] country, String sex, Page page) {
		return singerMapper.selectBySongHot(country,sex,page);
	}

}
